package manager
{
	import flash.utils.Dictionary;

	public class ModelMgr
	{
		private static var instance:ModelMgr;
		private var porxyList:Dictionary = new Dictionary(true);
	
		public function ModelMgr()
		{
		}
		
		public static function get inst():ModelMgr
		{
			return instance ||= new ModelMgr();
		}
		
		/**
		 * 游戏初始化时．必需先初始化的ＰＯＲＸＹ 
		 * 
		 */		
		public function initModel():void
		{
			
		}
		
		public function getModel(cl:Class):*
		{
			if(!porxyList[cl])
				porxyList[cl] = new cl();
			
			return porxyList[cl];
		}
		
		
		
	}
}